<?php

define('AREA', 'A');

// change the following paths if necessary
$globals=dirname(__FILE__).'/../common/globals.php';
$yii=dirname(__FILE__).'/../framework/yii.php';
$config=dirname(__FILE__).'/protected/config/main.php';

//// remove the following lines when in production mode
//defined('YII_DEBUG') or define('YII_DEBUG',true);
//// specify how many levels of call stack should be shown in each log message
//defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
//error_reporting(~E_STRICT); //Remove error
//debug
defined('YII_DEBUG') or define('YII_DEBUG',true );
//show profiler
defined('YII_DEBUG_SHOW_PROFILER') or define('YII_DEBUG_SHOW_PROFILER',true);
//enable profiling
defined('YII_DEBUG_PROFILING') or define('YII_DEBUG_PROFILING',true);
//trace level
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',0);

require_once($globals);
require_once($yii);
$app = Yii::createWebApplication($config);


if (ini_get('mbstring.func_overload') & 2) {
	throw new Exception('Multibyte function overloading in PHP must be disabled for string functions (2).');
}


$app->run();
Yii::app()->setGlobalState('Yii.CSecurityManager.validationkey', '5a0022362ec7283711bc69d120c28955');
